#ifndef UILINEEDIT_H
#define UILINEEDIT_H

#include <QLineEdit>

class UiLineEdit : public QLineEdit
{
    Q_OBJECT
public:
    UiLineEdit(QWidget* parent = nullptr);

    // QWidget interface
    QString value() const;
    void setValue(const QString &value);

signals:
    void sigEditFinished();

protected:
    void focusOutEvent(QFocusEvent *event);
    void keyPressEvent(QKeyEvent *event);

private:
    QString m_value;
};

#endif // UILINEEDIT_H
